package com.yzc.mihuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 帖子表 	
 * </p>
 *
 * @author 易紫诚
 * @since 2022-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Invitation对象", description="帖子表")
public class Invitation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子主键")
    @TableId(value = "invitation_id", type = IdType.AUTO)
    private Integer invitationId;

    @ApiModelProperty(value = "帖子标题")
    private String invitationHeadline;

    @ApiModelProperty(value = "这篇帖子来自哪")
    private Long invitationCome;

    @ApiModelProperty(value = "帖子创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "帖子修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "帖子内容")
    private String gmtContent;

    @ApiModelProperty(value = "0 允许转载 1禁止转载")
    private Integer gmtReprint;

    @ApiModelProperty(value = "这个帖子是哪个板块")
    private Integer gmtPlate;

    @ApiModelProperty(value = "观看的数量")
    private  Integer gmtDian;

    @TableField(exist = false,value = "点赞的数量")
    private  Integer sums;

    @TableField(exist = false,value = "收藏的数量")
    private  Integer zwu;

    @TableField(exist = false,value = "评论的数量")
    private  Integer commentNum;

    @TableField(exist = false,value = "话题id")
    private  String topic_id;
}
